{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "tsfresh提取特征"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [],
   "source": [
    "import joblib\n",
    "import pandas as pd\n",
    "import numpy as np\n",
    "from tsfresh import select_features\n",
    "from tsfresh import extract_features\n",
    "from tsfresh.feature_extraction import EfficientFCParameters\n",
    "from tsfresh.feature_extraction import ComprehensiveFCParameters\n",
    "from joblib import Parallel, delayed\n",
    "import os"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [],
   "source": [
    "efficient_parameters = {\n",
    "    'length': None,\n",
    "    'abs_energy': None,\n",
    "    \n",
    "     'standard_deviation': None,\n",
    "     'cid_ce': [{'normalize': True}, {'normalize': False}],\n",
    "     'ar_coefficient': [{'coeff': 1, 'k': 10}],\n",
    "     'fft_aggregated': [{'aggtype': 'centroid'},\n",
    "                          {'aggtype': 'kurtosis'}],\n",
    "    'quantile': [{'q': 0.1},\n",
    "                  {'q': 0.2},\n",
    "                  {'q': 0.3},\n",
    "                  {'q': 0.4},\n",
    "                  {'q': 0.6},\n",
    "                  {'q': 0.7},\n",
    "                  {'q': 0.8},\n",
    "                  {'q': 0.9}],\n",
    "     'autocorrelation': [\n",
    "                  {'lag': 6},\n",
    "                  {'lag': 7},\n",
    "                  {'lag': 8},\n",
    "                  {'lag': 9}],\n",
    "\n",
    "    'agg_autocorrelation': [ {'f_agg': 'median'}],\n",
    "    'approximate_entropy': [{'m': 2, 'r': 0.1},\n",
    "                            {'m': 2, 'r': 0.3},\n",
    "                            {'m': 2, 'r': 0.5},\n",
    "                            {'m': 2, 'r': 0.7},\n",
    "                            {'m': 2, 'r': 0.9}],\n",
    "\n",
    "    'linear_trend': [{'attr': 'pvalue'},\n",
    "                    {'attr': 'rvalue'},\n",
    "                    {'attr': 'intercept'},\n",
    "                    {'attr': 'slope'},\n",
    "                    {'attr': 'stderr'}],\n",
    "    \n",
    "}\n",
    "\n",
    "settings = efficient_parameters"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [],
   "source": [
    "def gen_tsfresh_feature_basis(sensor,settings):\n",
    "    '''\n",
    "    描述：\n",
    "        settings，使用tsfresh提取指定特征\n",
    "    参数：\n",
    "        sensor：\n",
    "        settings(dict): 想要提取的特征\n",
    "    '''\n",
    "    if 'vibration_1' in settings.keys():\n",
    "        extracted_features = extract_features(sensor, column_id='id', column_sort='sort_col', n_jobs=48, \n",
    "                                          kind_to_fc_parameters=settings, disable_progressbar = True)\n",
    "    else:\n",
    "        extracted_features = extract_features(sensor, column_id='id', column_sort='sort_col', n_jobs=48, \n",
    "                                          default_fc_parameters=settings, disable_progressbar = False)\n",
    "    return extracted_features\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [],
   "source": [
    "def gen_tsfresh_feature_parallel(train_no, csv_nos, settings):\n",
    "    '''\n",
    "    描述：\n",
    "        并行提取多个senosr文件的tsfresh特征\n",
    "    参数：\n",
    "        train_no：第几个plc\n",
    "        csv_nos：plc对应的sensor文件个数\n",
    "    '''\n",
    "    \n",
    "    input_dir = './sensors_scale_cur/%s/'%train_no\n",
    "    output_dir = './sensor_tsfresh_efficient/%s/'%train_no\n",
    "    \n",
    "    if not os.path.exists('./sensor_tsfresh_efficient'):\n",
    "        os.mkdir('./sensor_tsfresh_efficient')\n",
    "    if not os.path.exists('./sensor_tsfresh_efficient/%s'%train_no):\n",
    "        os.mkdir('./sensor_tsfresh_efficient/%s'%train_no)\n",
    "    \n",
    "    def basis_func(idx):\n",
    "        sensor = joblib.load(input_dir + '%d.lz4'%idx)\n",
    "        tmp = gen_tsfresh_feature_basis(sensor, settings)\n",
    "        joblib.dump(tmp, output_dir+'%d.lz4'%idx, compress='lz4')\n",
    "        \n",
    "    Parallel(n_jobs=1,verbose=1)(delayed(basis_func)(i) for i in range(1,csv_nos+1))"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "[Parallel(n_jobs=1)]: Using backend SequentialBackend with 1 concurrent workers.\n",
      "\n",
      "Feature Extraction:   0%|          | 0/234 [00:00<?, ?it/s]\u001b[A\n",
      "Feature Extraction:   0%|          | 1/234 [00:17<1:08:45, 17.70s/it]\u001b[A\n",
      "Feature Extraction:   1%|▏         | 3/234 [00:17<22:53,  5.95s/it]  \u001b[A\n",
      "Feature Extraction:   2%|▏         | 5/234 [00:17<13:42,  3.59s/it]\u001b[A\n",
      "Feature Extraction:   3%|▎         | 6/234 [00:18<11:32,  3.04s/it]\u001b[A\n",
      "Feature Extraction:   4%|▍         | 10/234 [00:18<06:56,  1.86s/it]\u001b[A\n",
      "Feature Extraction:   5%|▌         | 12/234 [00:18<05:50,  1.58s/it]\u001b[A\n",
      "Feature Extraction:   6%|▌         | 14/234 [00:19<04:59,  1.36s/it]\u001b[A\n",
      "Feature Extraction:   7%|▋         | 16/234 [00:19<04:21,  1.20s/it]\u001b[A\n",
      "Feature Extraction:   8%|▊         | 19/234 [00:19<03:38,  1.02s/it]\u001b[A\n",
      "Feature Extraction:   9%|▉         | 21/234 [00:19<03:18,  1.07it/s]\u001b[A\n",
      "Feature Extraction:  10%|▉         | 23/234 [00:19<03:02,  1.16it/s]\u001b[A\n",
      "Feature Extraction:  11%|█         | 25/234 [00:20<02:49,  1.23it/s]\u001b[A\n",
      "Feature Extraction:  12%|█▏        | 27/234 [00:20<02:36,  1.32it/s]\u001b[A\n",
      "Feature Extraction:  12%|█▏        | 29/234 [00:21<02:28,  1.38it/s]\u001b[A\n",
      "Feature Extraction:  13%|█▎        | 30/234 [00:21<02:24,  1.41it/s]\u001b[A\n",
      "Feature Extraction:  13%|█▎        | 31/234 [00:21<02:19,  1.45it/s]\u001b[A\n",
      "Feature Extraction:  14%|█▎        | 32/234 [00:21<02:15,  1.49it/s]\u001b[A\n",
      "Feature Extraction:  14%|█▍        | 33/234 [00:21<02:12,  1.52it/s]\u001b[A\n",
      "Feature Extraction:  15%|█▍        | 34/234 [00:22<02:10,  1.54it/s]\u001b[A\n",
      "Feature Extraction:  15%|█▍        | 35/234 [00:22<02:07,  1.56it/s]\u001b[A\n",
      "Feature Extraction:  16%|█▌        | 37/234 [00:22<02:01,  1.62it/s]\u001b[A\n",
      "Feature Extraction:  16%|█▌        | 38/234 [00:23<02:00,  1.62it/s]\u001b[A\n",
      "Feature Extraction:  17%|█▋        | 39/234 [00:23<01:57,  1.66it/s]\u001b[A\n",
      "Feature Extraction:  17%|█▋        | 40/234 [00:23<01:55,  1.68it/s]\u001b[A\n",
      "Feature Extraction:  18%|█▊        | 41/234 [00:23<01:52,  1.71it/s]\u001b[A\n",
      "Feature Extraction:  18%|█▊        | 42/234 [00:25<01:55,  1.67it/s]\u001b[A\n",
      "Feature Extraction:  18%|█▊        | 43/234 [00:25<01:54,  1.67it/s]\u001b[A\n",
      "Feature Extraction:  20%|█▉        | 46/234 [00:25<01:46,  1.77it/s]\u001b[A\n",
      "Feature Extraction:  20%|██        | 47/234 [00:27<01:50,  1.69it/s]\u001b[A\n",
      "Feature Extraction:  21%|██        | 48/234 [00:28<01:49,  1.71it/s]\u001b[A\n",
      "Feature Extraction:  21%|██        | 49/234 [00:33<02:08,  1.44it/s]\u001b[A\n",
      "Feature Extraction:  21%|██▏       | 50/234 [00:34<02:07,  1.44it/s]\u001b[A\n",
      "Feature Extraction:  22%|██▏       | 51/234 [00:34<02:04,  1.46it/s]\u001b[A\n",
      "Feature Extraction:  22%|██▏       | 52/234 [00:34<02:02,  1.49it/s]\u001b[A\n",
      "Feature Extraction:  23%|██▎       | 53/234 [00:35<02:01,  1.49it/s]\u001b[A\n",
      "Feature Extraction:  23%|██▎       | 54/234 [00:35<01:58,  1.51it/s]\u001b[A\n",
      "Feature Extraction:  24%|██▍       | 56/234 [00:35<01:53,  1.56it/s]\u001b[A\n",
      "Feature Extraction:  24%|██▍       | 57/234 [00:36<01:52,  1.58it/s]\u001b[A\n",
      "Feature Extraction:  25%|██▌       | 59/234 [00:36<01:49,  1.60it/s]\u001b[A\n",
      "Feature Extraction:  26%|██▌       | 61/234 [00:37<01:45,  1.64it/s]\u001b[A\n",
      "Feature Extraction:  27%|██▋       | 64/234 [00:37<01:40,  1.70it/s]\u001b[A\n",
      "Feature Extraction:  28%|██▊       | 65/234 [00:38<01:38,  1.71it/s]\u001b[A\n",
      "Feature Extraction:  29%|██▊       | 67/234 [00:38<01:35,  1.75it/s]\u001b[A\n",
      "Feature Extraction:  29%|██▉       | 68/234 [00:38<01:33,  1.77it/s]\u001b[A\n",
      "Feature Extraction:  30%|██▉       | 70/234 [00:38<01:30,  1.81it/s]\u001b[A\n",
      "Feature Extraction:  30%|███       | 71/234 [00:39<01:29,  1.82it/s]\u001b[A\n",
      "Feature Extraction:  31%|███       | 72/234 [00:39<01:28,  1.83it/s]\u001b[A\n",
      "Feature Extraction:  31%|███       | 73/234 [00:39<01:27,  1.85it/s]\u001b[A\n",
      "Feature Extraction:  32%|███▏      | 75/234 [00:39<01:24,  1.89it/s]\u001b[A\n",
      "Feature Extraction:  32%|███▏      | 76/234 [00:41<01:25,  1.84it/s]\u001b[A\n",
      "Feature Extraction:  33%|███▎      | 78/234 [00:41<01:22,  1.89it/s]\u001b[A\n",
      "Feature Extraction:  34%|███▍      | 79/234 [00:41<01:21,  1.91it/s]\u001b[A\n",
      "Feature Extraction:  34%|███▍      | 80/234 [00:41<01:20,  1.92it/s]\u001b[A\n",
      "Feature Extraction:  35%|███▍      | 81/234 [00:41<01:19,  1.93it/s]\u001b[A\n",
      "Feature Extraction:  35%|███▌      | 82/234 [00:42<01:18,  1.95it/s]\u001b[A\n",
      "Feature Extraction:  35%|███▌      | 83/234 [00:42<01:17,  1.96it/s]\u001b[A\n",
      "Feature Extraction:  36%|███▌      | 84/234 [00:42<01:16,  1.96it/s]\u001b[A\n",
      "Feature Extraction:  36%|███▋      | 85/234 [00:43<01:16,  1.94it/s]\u001b[A\n",
      "Feature Extraction:  37%|███▋      | 86/234 [00:44<01:15,  1.95it/s]\u001b[A\n",
      "Feature Extraction:  37%|███▋      | 87/234 [00:44<01:14,  1.97it/s]\u001b[A\n",
      "Feature Extraction:  38%|███▊      | 88/234 [00:44<01:14,  1.96it/s]\u001b[A\n",
      "Feature Extraction:  38%|███▊      | 89/234 [00:45<01:13,  1.97it/s]\u001b[A\n",
      "Feature Extraction:  38%|███▊      | 90/234 [00:46<01:14,  1.93it/s]\u001b[A\n",
      "Feature Extraction:  39%|███▉      | 91/234 [00:46<01:13,  1.94it/s]\u001b[A\n",
      "Feature Extraction:  39%|███▉      | 92/234 [00:47<01:13,  1.94it/s]\u001b[A\n",
      "Feature Extraction:  40%|███▉      | 93/234 [00:47<01:12,  1.95it/s]\u001b[A\n",
      "Feature Extraction:  40%|████      | 94/234 [00:48<01:11,  1.95it/s]\u001b[A\n",
      "Feature Extraction:  41%|████      | 95/234 [00:50<01:13,  1.89it/s]\u001b[A\n",
      "Feature Extraction:  41%|████      | 96/234 [00:50<01:12,  1.90it/s]\u001b[A\n",
      "Feature Extraction:  41%|████▏     | 97/234 [00:51<01:12,  1.89it/s]\u001b[A\n",
      "Feature Extraction:  42%|████▏     | 98/234 [00:52<01:12,  1.87it/s]\u001b[A\n",
      "Feature Extraction:  42%|████▏     | 99/234 [00:52<01:11,  1.88it/s]\u001b[A\n",
      "Feature Extraction:  43%|████▎     | 101/234 [00:52<01:09,  1.91it/s]\u001b[A\n",
      "Feature Extraction:  44%|████▎     | 102/234 [00:53<01:09,  1.91it/s]\u001b[A\n",
      "Feature Extraction:  44%|████▍     | 103/234 [00:53<01:08,  1.92it/s]\u001b[A\n",
      "Feature Extraction:  44%|████▍     | 104/234 [00:53<01:07,  1.93it/s]\u001b[A\n",
      "Feature Extraction:  45%|████▍     | 105/234 [00:53<01:06,  1.95it/s]\u001b[A\n",
      "Feature Extraction:  45%|████▌     | 106/234 [00:54<01:06,  1.94it/s]\u001b[A\n",
      "Feature Extraction:  46%|████▌     | 107/234 [00:55<01:05,  1.94it/s]\u001b[A\n",
      "Feature Extraction:  47%|████▋     | 109/234 [00:55<01:03,  1.96it/s]\u001b[A\n",
      "Feature Extraction:  47%|████▋     | 110/234 [00:55<01:02,  1.98it/s]\u001b[A\n",
      "Feature Extraction:  47%|████▋     | 111/234 [00:55<01:01,  1.99it/s]\u001b[A\n",
      "Feature Extraction:  48%|████▊     | 112/234 [00:56<01:01,  1.99it/s]\u001b[A\n",
      "Feature Extraction:  48%|████▊     | 113/234 [00:56<01:00,  2.00it/s]\u001b[A\n",
      "Feature Extraction:  49%|████▊     | 114/234 [00:56<00:59,  2.00it/s]\u001b[A\n",
      "Feature Extraction:  49%|████▉     | 115/234 [00:57<00:59,  2.02it/s]\u001b[A\n",
      "Feature Extraction:  50%|█████     | 118/234 [00:57<00:56,  2.06it/s]\u001b[A\n",
      "Feature Extraction:  51%|█████     | 119/234 [00:57<00:55,  2.08it/s]\u001b[A\n",
      "Feature Extraction:  51%|█████▏    | 120/234 [00:57<00:54,  2.08it/s]\u001b[A\n",
      "Feature Extraction:  52%|█████▏    | 122/234 [00:57<00:53,  2.11it/s]\u001b[A\n",
      "Feature Extraction:  53%|█████▎    | 123/234 [00:59<00:53,  2.07it/s]\u001b[A\n",
      "Feature Extraction:  53%|█████▎    | 124/234 [00:59<00:53,  2.08it/s]\u001b[A\n",
      "Feature Extraction:  53%|█████▎    | 125/234 [00:59<00:52,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  54%|█████▍    | 126/234 [01:00<00:51,  2.08it/s]\u001b[A\n",
      "Feature Extraction:  54%|█████▍    | 127/234 [01:00<00:51,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  55%|█████▍    | 128/234 [01:01<00:50,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  55%|█████▌    | 129/234 [01:01<00:50,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  56%|█████▌    | 130/234 [01:02<00:49,  2.10it/s]\u001b[A\n",
      "Feature Extraction:  56%|█████▌    | 131/234 [01:02<00:49,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  56%|█████▋    | 132/234 [01:03<00:48,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  57%|█████▋    | 134/234 [01:03<00:47,  2.11it/s]\u001b[A\n",
      "Feature Extraction:  58%|█████▊    | 135/234 [01:04<00:47,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  58%|█████▊    | 136/234 [01:06<00:47,  2.05it/s]\u001b[A\n",
      "Feature Extraction:  59%|█████▊    | 137/234 [01:06<00:47,  2.06it/s]\u001b[A\n",
      "Feature Extraction:  59%|█████▉    | 139/234 [01:06<00:45,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  60%|█████▉    | 140/234 [01:07<00:45,  2.07it/s]\u001b[A\n",
      "Feature Extraction:  60%|██████    | 141/234 [01:09<00:45,  2.03it/s]\u001b[A\n",
      "Feature Extraction:  61%|██████    | 143/234 [01:09<00:44,  2.06it/s]\u001b[A\n",
      "Feature Extraction:  62%|██████▏   | 144/234 [01:09<00:43,  2.06it/s]\u001b[A\n",
      "Feature Extraction:  62%|██████▏   | 145/234 [01:10<00:43,  2.06it/s]\u001b[A\n",
      "Feature Extraction:  62%|██████▏   | 146/234 [01:10<00:42,  2.06it/s]\u001b[A\n",
      "Feature Extraction:  63%|██████▎   | 148/234 [01:11<00:41,  2.07it/s]\u001b[A\n",
      "Feature Extraction:  64%|██████▎   | 149/234 [01:11<00:40,  2.08it/s]\u001b[A\n",
      "Feature Extraction:  64%|██████▍   | 150/234 [01:11<00:40,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  65%|██████▍   | 151/234 [01:11<00:39,  2.10it/s]\u001b[A\n",
      "Feature Extraction:  65%|██████▍   | 152/234 [01:12<00:39,  2.10it/s]\u001b[A\n",
      "Feature Extraction:  65%|██████▌   | 153/234 [01:13<00:38,  2.09it/s]\u001b[A\n",
      "Feature Extraction:  66%|██████▌   | 154/234 [01:13<00:38,  2.10it/s]\u001b[A\n",
      "Feature Extraction:  67%|██████▋   | 157/234 [01:13<00:36,  2.13it/s]\u001b[A\n",
      "Feature Extraction:  68%|██████▊   | 158/234 [01:13<00:35,  2.14it/s]\u001b[A\n",
      "Feature Extraction:  68%|██████▊   | 159/234 [01:15<00:35,  2.12it/s]\u001b[A\n",
      "Feature Extraction:  68%|██████▊   | 160/234 [01:15<00:34,  2.13it/s]\u001b[A\n",
      "Feature Extraction:  69%|██████▉   | 161/234 [01:15<00:34,  2.13it/s]\u001b[A\n",
      "Feature Extraction:  71%|███████   | 165/234 [01:15<00:31,  2.18it/s]\u001b[A\n",
      "Feature Extraction:  71%|███████   | 166/234 [01:15<00:31,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  71%|███████▏  | 167/234 [01:15<00:30,  2.20it/s]\u001b[A\n",
      "Feature Extraction:  72%|███████▏  | 168/234 [01:16<00:29,  2.20it/s]\u001b[A\n",
      "Feature Extraction:  73%|███████▎  | 170/234 [01:16<00:28,  2.22it/s]\u001b[A\n",
      "Feature Extraction:  73%|███████▎  | 171/234 [01:18<00:28,  2.18it/s]\u001b[A\n",
      "Feature Extraction:  74%|███████▎  | 172/234 [01:18<00:28,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  74%|███████▍  | 173/234 [01:19<00:28,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  75%|███████▍  | 175/234 [01:19<00:26,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  75%|███████▌  | 176/234 [01:20<00:26,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  76%|███████▌  | 177/234 [01:20<00:25,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  76%|███████▌  | 178/234 [01:22<00:25,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  76%|███████▋  | 179/234 [01:22<00:25,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  77%|███████▋  | 180/234 [01:22<00:24,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  78%|███████▊  | 182/234 [01:23<00:23,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  78%|███████▊  | 183/234 [01:24<00:23,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  79%|███████▊  | 184/234 [01:25<00:23,  2.16it/s]\u001b[A\n",
      "Feature Extraction:  79%|███████▉  | 186/234 [01:26<00:22,  2.15it/s]\u001b[A\n",
      "Feature Extraction:  80%|███████▉  | 187/234 [01:27<00:21,  2.15it/s]\u001b[A\n",
      "Feature Extraction:  80%|████████  | 188/234 [01:27<00:21,  2.15it/s]\u001b[A\n",
      "Feature Extraction:  81%|████████  | 189/234 [01:27<00:20,  2.16it/s]\u001b[A\n",
      "Feature Extraction:  81%|████████  | 190/234 [01:27<00:20,  2.16it/s]\u001b[A\n",
      "Feature Extraction:  82%|████████▏ | 191/234 [01:28<00:19,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  82%|████████▏ | 192/234 [01:28<00:19,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  82%|████████▏ | 193/234 [01:29<00:19,  2.15it/s]\u001b[A\n",
      "Feature Extraction:  83%|████████▎ | 195/234 [01:29<00:17,  2.17it/s]\u001b[A\n",
      "Feature Extraction:  85%|████████▍ | 198/234 [01:30<00:16,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  85%|████████▌ | 199/234 [01:30<00:16,  2.19it/s]\u001b[A\n",
      "Feature Extraction:  86%|████████▌ | 201/234 [01:31<00:15,  2.20it/s]\u001b[A\n",
      "Feature Extraction:  87%|████████▋ | 203/234 [01:31<00:14,  2.21it/s]\u001b[A\n",
      "Feature Extraction:  88%|████████▊ | 205/234 [01:31<00:13,  2.23it/s]\u001b[A\n",
      "Feature Extraction:  88%|████████▊ | 206/234 [01:32<00:12,  2.23it/s]\u001b[A\n",
      "Feature Extraction:  88%|████████▊ | 207/234 [01:32<00:12,  2.24it/s]\u001b[A\n",
      "Feature Extraction:  90%|█████████ | 211/234 [01:32<00:10,  2.27it/s]\u001b[A\n",
      "Feature Extraction:  91%|█████████ | 212/234 [01:33<00:09,  2.28it/s]\u001b[A\n",
      "Feature Extraction:  92%|█████████▏| 216/234 [01:33<00:07,  2.32it/s]\u001b[A\n",
      "Feature Extraction:  93%|█████████▎| 218/234 [01:33<00:06,  2.33it/s]\u001b[A\n",
      "Feature Extraction:  94%|█████████▍| 220/234 [01:34<00:06,  2.32it/s]\u001b[A\n",
      "Feature Extraction:  95%|█████████▍| 222/234 [01:35<00:05,  2.33it/s]\u001b[A\n",
      "Feature Extraction:  95%|█████████▌| 223/234 [01:35<00:04,  2.34it/s]\u001b[A\n",
      "Feature Extraction:  96%|█████████▌| 225/234 [01:35<00:03,  2.36it/s]\u001b[A\n",
      "Feature Extraction:  97%|█████████▋| 227/234 [01:36<00:02,  2.36it/s]\u001b[A\n",
      "Feature Extraction:  97%|█████████▋| 228/234 [01:36<00:02,  2.37it/s]\u001b[A\n",
      "Feature Extraction:  98%|█████████▊| 230/234 [01:36<00:01,  2.39it/s]\u001b[A\n",
      "Feature Extraction:  99%|█████████▊| 231/234 [01:36<00:01,  2.39it/s]\u001b[A\n",
      "Feature Extraction:  99%|█████████▉| 232/234 [01:37<00:00,  2.39it/s]\u001b[A\n",
      "Feature Extraction: 100%|█████████▉| 233/234 [01:37<00:00,  2.40it/s]\u001b[A\n",
      "Feature Extraction: 100%|██████████| 234/234 [01:37<00:00,  2.40it/s]\u001b[A\n",
      "\u001b[A[Parallel(n_jobs=1)]: Done   1 out of   1 | elapsed:  1.7min remaining:    0.0s\n",
      "\n",
      "Feature Extraction:   0%|          | 0/239 [00:00<?, ?it/s]\u001b[AProcess ForkPoolWorker-361:\n",
      "Process ForkPoolWorker-382:\n",
      "Process ForkPoolWorker-371:\n",
      "Process ForkPoolWorker-378:\n",
      "Process ForkPoolWorker-345:\n",
      "Process ForkPoolWorker-347:\n",
      "Process ForkPoolWorker-343:\n",
      "Process ForkPoolWorker-373:\n",
      "Process ForkPoolWorker-381:\n",
      "Process ForkPoolWorker-379:\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-341:\n",
      "Process ForkPoolWorker-340:\n",
      "Process ForkPoolWorker-359:\n",
      "Process ForkPoolWorker-338:\n",
      "Process ForkPoolWorker-339:\n",
      "Process ForkPoolWorker-344:\n",
      "Process ForkPoolWorker-380:\n",
      "Process ForkPoolWorker-366:\n",
      "Process ForkPoolWorker-367:\n",
      "Process ForkPoolWorker-363:\n",
      "Process ForkPoolWorker-349:\n"
     ]
    },
    {
     "ename": "KeyboardInterrupt",
     "evalue": "",
     "output_type": "error",
     "traceback": [
      "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m",
      "\u001b[0;31mIndexError\u001b[0m                                Traceback (most recent call last)",
      "\u001b[0;32m/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\u001b[0m in \u001b[0;36mnext\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m    719\u001b[0m             \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 720\u001b[0;31m                 \u001b[0mitem\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_items\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpopleft\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    721\u001b[0m             \u001b[0;32mexcept\u001b[0m \u001b[0mIndexError\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;31mIndexError\u001b[0m: pop from an empty deque",
      "\nDuring handling of the above exception, another exception occurred:\n",
      "\u001b[0;31mKeyboardInterrupt\u001b[0m                         Traceback (most recent call last)",
      "\u001b[0;32m<ipython-input-21-95fdee8de4c2>\u001b[0m in \u001b[0;36m<module>\u001b[0;34m()\u001b[0m\n\u001b[0;32m----> 1\u001b[0;31m \u001b[0mgen_tsfresh_feature_parallel\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m'01'\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0;36m48\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msettings\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[0;32m<ipython-input-20-62750863612c>\u001b[0m in \u001b[0;36mgen_tsfresh_feature_parallel\u001b[0;34m(train_no, csv_nos, settings)\u001b[0m\n\u001b[1;32m     21\u001b[0m         \u001b[0mjoblib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdump\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtmp\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput_dir\u001b[0m\u001b[0;34m+\u001b[0m\u001b[0;34m'%d.lz4'\u001b[0m\u001b[0;34m%\u001b[0m\u001b[0midx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcompress\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'lz4'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     22\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 23\u001b[0;31m     \u001b[0mParallel\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mn_jobs\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mverbose\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;36m10\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdelayed\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mbasis_func\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mi\u001b[0m\u001b[0;34m)\u001b[0m \u001b[0;32mfor\u001b[0m \u001b[0mi\u001b[0m \u001b[0;32min\u001b[0m \u001b[0mrange\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0mcsv_nos\u001b[0m\u001b[0;34m+\u001b[0m\u001b[0;36m1\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m",
      "\u001b[0;32m~/.local/lib/python3.6/site-packages/joblib/parallel.py\u001b[0m in \u001b[0;36m__call__\u001b[0;34m(self, iterable)\u001b[0m\n\u001b[1;32m    984\u001b[0m                 \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_iterating\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_original_iterator\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mnot\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    985\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 986\u001b[0;31m             \u001b[0;32mwhile\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdispatch_one_batch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0miterator\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    987\u001b[0m                 \u001b[0;32mpass\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    988\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/.local/lib/python3.6/site-packages/joblib/parallel.py\u001b[0m in \u001b[0;36mdispatch_one_batch\u001b[0;34m(self, iterator)\u001b[0m\n\u001b[1;32m    823\u001b[0m                 \u001b[0;32mreturn\u001b[0m \u001b[0;32mFalse\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    824\u001b[0m             \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 825\u001b[0;31m                 \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_dispatch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtasks\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    826\u001b[0m                 \u001b[0;32mreturn\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    827\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/.local/lib/python3.6/site-packages/joblib/parallel.py\u001b[0m in \u001b[0;36m_dispatch\u001b[0;34m(self, batch)\u001b[0m\n\u001b[1;32m    780\u001b[0m         \u001b[0;32mwith\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_lock\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    781\u001b[0m             \u001b[0mjob_idx\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlen\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_jobs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 782\u001b[0;31m             \u001b[0mjob\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_backend\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mapply_async\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mbatch\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcallback\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mcb\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    783\u001b[0m             \u001b[0;31m# A job can complete so quickly than its callback is\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    784\u001b[0m             \u001b[0;31m# called before we get here, causing self._jobs to\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/.local/lib/python3.6/site-packages/joblib/_parallel_backends.py\u001b[0m in \u001b[0;36mapply_async\u001b[0;34m(self, func, callback)\u001b[0m\n\u001b[1;32m    180\u001b[0m     \u001b[0;32mdef\u001b[0m \u001b[0mapply_async\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mfunc\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcallback\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;32mNone\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    181\u001b[0m         \u001b[0;34m\"\"\"Schedule a func to be run\"\"\"\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 182\u001b[0;31m         \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mImmediateResult\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mfunc\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    183\u001b[0m         \u001b[0;32mif\u001b[0m \u001b[0mcallback\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    184\u001b[0m             \u001b[0mcallback\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresult\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/.local/lib/python3.6/site-packages/joblib/_parallel_backends.py\u001b[0m in \u001b[0;36m__init__\u001b[0;34m(self, batch)\u001b[0m\n\u001b[1;32m    543\u001b[0m         \u001b[0;31m# Don't delay the application, to avoid keeping the input\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    544\u001b[0m         \u001b[0;31m# arguments in memory\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 545\u001b[0;31m         \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mresults\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mbatch\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    546\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    547\u001b[0m     \u001b[0;32mdef\u001b[0m \u001b[0mget\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/.local/lib/python3.6/site-packages/joblib/parallel.py\u001b[0m in \u001b[0;36m__call__\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m    259\u001b[0m         \u001b[0;32mwith\u001b[0m \u001b[0mparallel_backend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_backend\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    260\u001b[0m             return [func(*args, **kwargs)\n\u001b[0;32m--> 261\u001b[0;31m                     for func, args, kwargs in self.items]\n\u001b[0m\u001b[1;32m    262\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    263\u001b[0m     \u001b[0;32mdef\u001b[0m \u001b[0m__len__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m~/.local/lib/python3.6/site-packages/joblib/parallel.py\u001b[0m in \u001b[0;36m<listcomp>\u001b[0;34m(.0)\u001b[0m\n\u001b[1;32m    259\u001b[0m         \u001b[0;32mwith\u001b[0m \u001b[0mparallel_backend\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_backend\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    260\u001b[0m             return [func(*args, **kwargs)\n\u001b[0;32m--> 261\u001b[0;31m                     for func, args, kwargs in self.items]\n\u001b[0m\u001b[1;32m    262\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    263\u001b[0m     \u001b[0;32mdef\u001b[0m \u001b[0m__len__\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mself\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m<ipython-input-20-62750863612c>\u001b[0m in \u001b[0;36mbasis_func\u001b[0;34m(idx)\u001b[0m\n\u001b[1;32m     18\u001b[0m     \u001b[0;32mdef\u001b[0m \u001b[0mbasis_func\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0midx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     19\u001b[0m         \u001b[0msensor\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mjoblib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mload\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0minput_dir\u001b[0m \u001b[0;34m+\u001b[0m \u001b[0;34m'%d.lz4'\u001b[0m\u001b[0;34m%\u001b[0m\u001b[0midx\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m---> 20\u001b[0;31m         \u001b[0mtmp\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mgen_tsfresh_feature_basis\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0msensor\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0msettings\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m     21\u001b[0m         \u001b[0mjoblib\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdump\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtmp\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0moutput_dir\u001b[0m\u001b[0;34m+\u001b[0m\u001b[0;34m'%d.lz4'\u001b[0m\u001b[0;34m%\u001b[0m\u001b[0midx\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mcompress\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0;34m'lz4'\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     22\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m<ipython-input-19-b995c99a1b38>\u001b[0m in \u001b[0;36mgen_tsfresh_feature_basis\u001b[0;34m(sensor, settings)\u001b[0m\n\u001b[1;32m     12\u001b[0m     \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m     13\u001b[0m         extracted_features = extract_features(sensor, column_id='id', column_sort='sort_col', n_jobs=48, \n\u001b[0;32m---> 14\u001b[0;31m                                           default_fc_parameters=settings, disable_progressbar = False)\n\u001b[0m\u001b[1;32m     15\u001b[0m     \u001b[0;32mreturn\u001b[0m \u001b[0mextracted_features\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\u001b[0m in \u001b[0;36mextract_features\u001b[0;34m(timeseries_container, default_fc_parameters, kind_to_fc_parameters, column_id, column_sort, column_kind, column_value, chunksize, n_jobs, show_warnings, disable_progressbar, impute_function, profile, profiling_filename, profiling_sorting, distributor)\u001b[0m\n\u001b[1;32m    150\u001b[0m                                 \u001b[0mdefault_fc_parameters\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mdefault_fc_parameters\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    151\u001b[0m                                 \u001b[0mkind_to_fc_parameters\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mkind_to_fc_parameters\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 152\u001b[0;31m                                 distributor=distributor)\n\u001b[0m\u001b[1;32m    153\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    154\u001b[0m         \u001b[0;31m# Impute the result if requested\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\u001b[0m in \u001b[0;36m_do_extraction\u001b[0;34m(df, column_id, column_value, column_kind, default_fc_parameters, kind_to_fc_parameters, n_jobs, chunk_size, disable_progressbar, distributor)\u001b[0m\n\u001b[1;32m    231\u001b[0m     \u001b[0mkwargs\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mdict\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mdefault_fc_parameters\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mdefault_fc_parameters\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mkind_to_fc_parameters\u001b[0m\u001b[0;34m=\u001b[0m\u001b[0mkind_to_fc_parameters\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    232\u001b[0m     result = distributor.map_reduce(_do_extraction_on_chunk, data=data_in_chunks, chunk_size=chunk_size,\n\u001b[0;32m--> 233\u001b[0;31m                                     function_kwargs=kwargs)\n\u001b[0m\u001b[1;32m    234\u001b[0m     \u001b[0mdistributor\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mclose\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    235\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\u001b[0m in \u001b[0;36mmap_reduce\u001b[0;34m(self, map_function, data, function_kwargs, chunk_size, data_length)\u001b[0m\n\u001b[1;32m    147\u001b[0m             \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mdistribute\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0m_function_with_partly_reduce\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mchunk_generator\u001b[0m\u001b[0;34m,\u001b[0m \u001b[0mmap_kwargs\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m,\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    148\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 149\u001b[0;31m         \u001b[0mresult\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mlist\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mitertools\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mchain\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mfrom_iterable\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mresult\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    150\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    151\u001b[0m         \u001b[0;32mreturn\u001b[0m \u001b[0mresult\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m/usr/local/anaconda3/lib/python3.6/site-packages/tqdm/_tqdm.py\u001b[0m in \u001b[0;36m__iter__\u001b[0;34m(self)\u001b[0m\n\u001b[1;32m    928\u001b[0m \"\"\", fp_write=getattr(self.fp, 'write', sys.stderr.write))\n\u001b[1;32m    929\u001b[0m \u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 930\u001b[0;31m             \u001b[0;32mfor\u001b[0m \u001b[0mobj\u001b[0m \u001b[0;32min\u001b[0m \u001b[0miterable\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    931\u001b[0m                 \u001b[0;32myield\u001b[0m \u001b[0mobj\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    932\u001b[0m                 \u001b[0;31m# Update and possibly print the progressbar.\u001b[0m\u001b[0;34m\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\u001b[0m in \u001b[0;36mnext\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m    722\u001b[0m                 \u001b[0;32mif\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_index\u001b[0m \u001b[0;34m==\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_length\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    723\u001b[0m                     \u001b[0;32mraise\u001b[0m \u001b[0mStopIteration\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 724\u001b[0;31m                 \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_cond\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mwait\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0mtimeout\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    725\u001b[0m                 \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    726\u001b[0m                     \u001b[0mitem\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0mself\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0m_items\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0mpopleft\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;32m/usr/local/anaconda3/lib/python3.6/threading.py\u001b[0m in \u001b[0;36mwait\u001b[0;34m(self, timeout)\u001b[0m\n\u001b[1;32m    293\u001b[0m         \u001b[0;32mtry\u001b[0m\u001b[0;34m:\u001b[0m    \u001b[0;31m# restore state no matter what (e.g., KeyboardInterrupt)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    294\u001b[0m             \u001b[0;32mif\u001b[0m \u001b[0mtimeout\u001b[0m \u001b[0;32mis\u001b[0m \u001b[0;32mNone\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0;32m--> 295\u001b[0;31m                 \u001b[0mwaiter\u001b[0m\u001b[0;34m.\u001b[0m\u001b[0macquire\u001b[0m\u001b[0;34m(\u001b[0m\u001b[0;34m)\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[0m\u001b[1;32m    296\u001b[0m                 \u001b[0mgotit\u001b[0m \u001b[0;34m=\u001b[0m \u001b[0;32mTrue\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n\u001b[1;32m    297\u001b[0m             \u001b[0;32melse\u001b[0m\u001b[0;34m:\u001b[0m\u001b[0;34m\u001b[0m\u001b[0m\n",
      "\u001b[0;31mKeyboardInterrupt\u001b[0m: "
     ]
    },
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "Process ForkPoolWorker-357:\n",
      "Process ForkPoolWorker-350:\n",
      "Process ForkPoolWorker-374:\n",
      "Process ForkPoolWorker-348:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Process ForkPoolWorker-342:\n",
      "Process ForkPoolWorker-355:\n",
      "Process ForkPoolWorker-370:\n",
      "Process ForkPoolWorker-346:\n",
      "Process ForkPoolWorker-335:\n",
      "Process ForkPoolWorker-372:\n",
      "Process ForkPoolWorker-362:\n",
      "Process ForkPoolWorker-377:\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-356:\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-369:\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-351:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Process ForkPoolWorker-353:\n",
      "Process ForkPoolWorker-354:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "Process ForkPoolWorker-360:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-376:\n",
      "Process ForkPoolWorker-352:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-368:\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 285, in _f\n",
      "    result = [(\"\", func(data))]\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "Process ForkPoolWorker-336:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "Process ForkPoolWorker-337:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "Process ForkPoolWorker-364:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 539, in standard_deviation\n",
      "    return np.std(x)\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-375:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "Traceback (most recent call last):\n",
      "Process ForkPoolWorker-365:\n",
      "Process ForkPoolWorker-358:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 280, in _f\n",
      "    result = func(data, param=parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 3075, in std\n",
      "    **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 967, in fft_aggregated\n",
      "    fft_abs = abs(np.fft.rfft(x))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1481, in quantile\n",
      "    return pd.Series.quantile(x, q)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "Traceback (most recent call last):\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 135, in _std\n",
      "    keepdims=keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1481, in quantile\n",
      "    return pd.Series.quantile(x, q)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/series.py\", line 1457, in quantile\n",
      "    result = self._data.quantile(qs=q, interpolation=interpolation)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 258, in _bootstrap\n",
      "    self.run()\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 105, in _var\n",
      "    arrmean, rcount, out=arrmean, casting='unsafe', subok=False)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/series.py\", line 1457, in quantile\n",
      "    result = self._data.quantile(qs=q, interpolation=interpolation)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 1882, in sum\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 3438, in quantile\n",
      "    return self.reduction('quantile', **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1481, in quantile\n",
      "    return pd.Series.quantile(x, q)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/process.py\", line 93, in run\n",
      "    self._target(*self._args, **self._kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 3438, in quantile\n",
      "    return self.reduction('quantile', **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 32, in _sum\n",
      "    return umr_sum(a, axis, dtype, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 3367, in reduction\n",
      "    axe, block = getattr(b, f)(axis=axis, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1608, in _phi\n",
      "    return np.sum(np.log(C)) / (N - m + 1.0)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/series.py\", line 1457, in quantile\n",
      "    result = self._data.quantile(qs=q, interpolation=interpolation)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/multiprocessing/pool.py\", line 119, in worker\n",
      "    result = (True, func(*args, **kwds))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 3367, in reduction\n",
      "    axe, block = getattr(b, f)(axis=axis, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 1646, in quantile\n",
      "    result = _nanpercentile(values, qs * 100, axis=axis, **kw)\n",
      "KeyboardInterrupt\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 3438, in quantile\n",
      "    return self.reduction('quantile', **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 1882, in sum\n",
      "    out=out, **kwargs)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 38, in _function_with_partly_reduce\n",
      "    results = list(itertools.chain.from_iterable(results))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 1646, in quantile\n",
      "    result = _nanpercentile(values, qs * 100, axis=axis, **kw)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 1602, in _nanpercentile\n",
      "    return np.percentile(values, q, axis=axis, **kw)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 3367, in reduction\n",
      "    axe, block = getattr(b, f)(axis=axis, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 32, in _sum\n",
      "    return umr_sum(a, axis, dtype, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/utilities/distribution.py\", line 37, in <genexpr>\n",
      "    results = (map_function(chunk, **kwargs) for chunk in chunk_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1461, in autocorrelation\n",
      "    x_mean = np.mean(x)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 1602, in _nanpercentile\n",
      "    return np.percentile(values, q, axis=axis, **kw)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 4291, in percentile\n",
      "    interpolation=interpolation)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 1646, in quantile\n",
      "    result = _nanpercentile(values, qs * 100, axis=axis, **kw)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 293, in _do_extraction_on_chunk\n",
      "    return list(_f())\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2957, in mean\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 4291, in percentile\n",
      "    interpolation=interpolation)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 4033, in _ureduce\n",
      "    r = func(a, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/internals.py\", line 1586, in _nanpercentile\n",
      "    mask = isna(self.values)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 280, in _f\n",
      "    result = func(data, param=parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 287, in _f\n",
      "    for key, item in result:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 280, in _f\n",
      "    result = func(data, param=parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 70, in _mean\n",
      "    ret = umr_sum(arr, axis, dtype, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 4033, in _ureduce\n",
      "    r = func(a, **kwargs)\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 4311, in _percentile\n",
      "    if q[i] < 0. or q[i] > 100.:\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "KeyboardInterrupt\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/dtypes/missing.py\", line 45, in isna\n",
      "    return _isna(obj)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1080, in linear_trend\n",
      "    linReg = linregress(range(len(x)), x)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/extraction.py\", line 283, in <genexpr>\n",
      "    result = ((convert_to_output_format(param), func(data, **param)) for param in parameter_list)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1203, in ar_coefficient\n",
      "    calculated_ar_params[k] = calculated_AR.fit(maxlag=k, solver=\"mle\").params\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 4395, in _percentile\n",
      "    ap = np.moveaxis(ap, axis, 0)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "KeyboardInterrupt\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/dtypes/missing.py\", line 58, in _isna_new\n",
      "    return _isna_ndarraylike(obj)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/scipy/stats/_stats_mstats_common.py\", line 93, in linregress\n",
      "    ssxm, ssxym, ssyxm, ssym = np.cov(x, y, bias=1).flat\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1610, in approximate_entropy\n",
      "    return np.abs(_phi(m) - _phi(m + 1))\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1605, in _phi\n",
      "    x_re = np.array([x[i:i+m] for i in range(N - m + 1)])\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1607, in _phi\n",
      "    axis=2) <= r, axis=0) / (N-m+1)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/statsmodels/tsa/ar_model.py\", line 555, in fit\n",
      "    arfit = OLS(Y, X).fit()\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/numeric.py\", line 1582, in moveaxis\n",
      "    result = transpose(order)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/home/shenjw/.local/lib/python3.6/site-packages/pandas/core/dtypes/missing.py\", line 153, in _isna_ndarraylike\n",
      "    result = np.isnan(values)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/lib/function_base.py\", line 3103, in cov\n",
      "    X -= avg[:, None]\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1606, in _phi\n",
      "    C = np.sum(np.max(np.abs(x_re[:, np.newaxis] - x_re[np.newaxis, :]),\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/tsfresh/feature_extraction/feature_calculators.py\", line 1605, in <listcomp>\n",
      "    x_re = np.array([x[i:i+m] for i in range(N - m + 1)])\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/fromnumeric.py\", line 2320, in amax\n",
      "    out=out, **kwargs)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/statsmodels/regression/linear_model.py\", line 279, in fit\n",
      "    self.rank = np_matrix_rank(np.diag(singular_values))\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 26, in _amax\n",
      "    return umr_maximum(a, axis, None, out, keepdims)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/linalg/linalg.py\", line 1647, in matrix_rank\n",
      "    return count_nonzero(S > tol, axis=-1)\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "KeyboardInterrupt\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/numeric.py\", line 421, in count_nonzero\n",
      "    return a_bool.sum(axis=axis, dtype=np.intp)\n",
      "  File \"/usr/local/anaconda3/lib/python3.6/site-packages/numpy/core/_methods.py\", line 32, in _sum\n",
      "    return umr_sum(a, axis, dtype, out, keepdims)\n",
      "KeyboardInterrupt\n"
     ]
    }
   ],
   "source": [
    "gen_tsfresh_feature_parallel('01', 48, settings)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "gen_tsfresh_feature_parallel('02', 48 , settings)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": [
    "gen_tsfresh_feature_parallel('03', 37, settings)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
